Add branch name-copy buttons on the branches list#25569
Add branch name-copy buttons on the branches list#25569puni9869 wants to merge 6 commits intogo-gitea:mainfrom
Conversation
|
@puni9869 could you check the "allow edits from maintainers" checkbox on this PR? |
|
How about moving the copy button following the branch name? There are too many buttons at the end of this line. |
I think that would look strange. Imho it looks better when the buttons are together. |
| branch.new_branch = Create new branch | ||
| branch.new_branch_from = Create new branch from "%s" | ||
| branch.renamed = Branch %s was renamed to %s. | ||
| branch.copy_branch_name = Copy Branch Name |
There was a problem hiding this comment.
The text could be Copy branch name, to match other texts like Create new branch
| branch.new_branch = Create new branch | ||
| branch.new_branch_from = Create new branch from "%s" | ||
| branch.renamed = Branch %s was renamed to %s. | ||
| branch.copy_branch_name = Copy Branch Name |
There was a problem hiding this comment.
| branch.copy_branch_name = Copy Branch Name | |
| branch.copy_branch_name = Copy branch name |
I have the opposite opinion. I don't think putting too many buttons together is a good design. And look like all other places, copy button is near the content. |
|
Due to conflicts. Pr is moved to #25596 |
Adding branch-name copy to clipboard and button in branches screen Replaces #25569 Fixes #25120 New mocks: <img width="876" alt="Screenshot 2023-06-30 at 12 01 41 AM" src="https://github.com/go-gitea/gitea/assets/80308335/a34ab00f-5625-4529-ba17-f2bf7af58e2a"> <img width="822" alt="Screenshot 2023-06-30 at 12 03 59 AM" src="https://github.com/go-gitea/gitea/assets/80308335/3a32dffc-52cd-49e1-a437-6d11d58d0939"> <img width="476" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/85e8f361-5cb7-45d4-aced-ad2523d54ab0">

Fix:: #25120
There are some observation in different platforms like Github, Gitlab, Bitbucket and bunch of more platform.
I have observed they all have copy option for branch name. They don't have copy option for tags.
As a UX prespective for tags we don't need copy option.
By above observation I am suggsting the following UI changes, I know they might not align with UX point of way.But they are simplest to make quick.
Here is my suggestions:

When Hover on Copy

When Clicked on Copy

Code changes in files:-
Translations:-
en-US.ini
@silverwind @delvh
I am open for any UI/UX suggestion which work the best.